<template>
  <div>
    <div class="search">
      <span>商品类型搜索：</span>
      <el-input v-model="input" placeholder="请输入订单编号"></el-input>
      <el-button type="primary" icon="el-icon-search">查询</el-button>
    </div>
    <div class="table">
      <el-button type="primary" icon="el-icon-circle-plus-outline">新建</el-button>
      <el-table highlight-current-row :data="tableData" style="width: 100%">
        <el-table-column prop="date" label="序号" width="180"></el-table-column>
        <el-table-column prop="name" label="订单编号"></el-table-column>
        <el-table-column prop="address" label="操作"> </el-table-column>
      </el-table>
    </div>
  </div>
</template>

<script>
export default {
  data () {
    return {
      tableData: [
        {
          date: '1',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1518 弄'
        },
        {
          date: '2',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1517 弄'
        },
        {
          date: '3',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1519 弄'
        },
        {
          date: '4',
          name: '王小虎',
          address: '上海市普陀区金沙江路 1516 弄'
        }
      ]
    }
  }
}
</script>

<style lang="scss" scoped>
.search {
  margin-bottom: 50px;
  .el-input {
    display: inline-block;
    width: 200px;
    margin-right: 10px;
  }
  .el-button {
    background-color: #5f84ff;
    margin-left: 10px;
  }
}
.table {
  .el-button {
    display: flex;
    background: linear-gradient(135deg, #ff9743, #ff5e20) !important;
    width: 80px !important;
    height: 36px;
    border: none;
    justify-content: center;
    align-items: center;
  }
}
</style>
